using System.Globalization;
using System.Windows;
using System.Windows.Markup;

using WpfTeleTwitter.Properties;

namespace WpfTeleTwitter
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{
		static App()
		{
			FrameworkElement.LanguageProperty.OverrideMetadata(
				typeof (FrameworkElement),
				new FrameworkPropertyMetadata(
					XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

			if (Settings.Default.Updated)
			{
				Settings.Default.Upgrade();
				Settings.Default.Updated = false;
				Settings.Default.Save();
			}
		}
	}
}